<?php

class BillingPeer extends BaseBillingPeer
{
	public static function GetUnpaidBill()
	{
	$c = new Criteria();
	$c->add(BillingPeer::STATUS, Constant::RECORD_STATUS_ACTIVE);
	$c->add(BillingPeer::PAYMENT_STATUS, Constant::BILL_UNPAID);
	//$c->addAscendingOrderByColumn(BillingPeer::BUILDING_ID);
	$bills= BillingPeer::doSelect($c);
	
if($bills)
	{
		return $bills;
	}
	
	else{
		return false;
		}	} // END - GetUnpaidBill
}
